package com.sc.core.util.translator;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@org.springframework.context.annotation.Configuration
@ConfigurationProperties(prefix = "translation")
public class Configuration {
    private BaiduTranslation baidu = new BaiduTranslation();
    private String defaultTranslator;

    @Data
//    @org.springframework.context.annotation.Configuration
    public static class BaiduTranslation {
        private String appid;
        private String secret;
    }
}
